package routers

import (
	"beeblog/controllers"
	"github.com/astaxie/beego"
)

func init() {
    beego.Router("/", &controllers.MainController{})
    beego.Router("/login",&controllers.LoginController{},"post:Post;get:Get")
    beego.Router("/category",&controllers.CategoryController{})
    beego.Router("/topic",&controllers.TopicController{})
    beego.Router("/replay",&controllers.ReplayControllers{})
    beego.Router("/replay/add",&controllers.ReplayControllers{},"post:Add")
    beego.Router("/replay/delete",&controllers.ReplayControllers{},"get:Delete")

	//自动路由
	beego.AutoRouter(&controllers.TopicController{})
    }
